/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pessoas.ordenacao;

import java.util.Comparator;
import pessoas.model.Contato;

/**
 *
 * @author Bush
 */
public class ComparadorDeUfContatoCres implements Comparator<Contato> {

    @Override
    public int compare(Contato aPerson, Contato anotherPerson) {
        return aPerson.getUf().compareTo(anotherPerson.getUf());
    }    
}
